<template>
  <div>
    <el-breadcrumb>
      <el-breadcrumb-item v-for="item in breadList" :key="item.path">
        <router-link :to="item.path">
          {{ item.meta.title }}
        </router-link>
      </el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const breadList = computed(() => {
  return route.matched
})
</script>

<style lang="scss" scoped>
</style>